<%@ page import="java.util.Date" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/8/20
  Time: 20:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<html>
<head>
    <title>$Title$</title>
</head>
<body>
<%= new Date()%>
<hr>

<%
    int sum = 0;
    for (int i = 1; i <= 100;i++){
        sum += i;
    }
    out.println(sum);
%>
<br>
<% for (int i = 1; i <= 5;i++){%>
    Hello world  <%=i%> <br>
<%}%>
<br>
<%
    int[] o = {412,214,124};
    session.setAttribute("a",o);
%>


<c:forEach items="${a}" var="ac" step="1" varStatus="a">
    ${ac} ${a.index+1} <br>

</c:forEach>

</body>
</html>
